/**
 * 环境配置封装
*/

const env = import.meta.env.MODE || 'prod'; // 当前环境

const EnvConfig = {
  dev: {
    baseApi: '/api',
    mockApi: 'http://127.0.0.1:4523/m2/5530097-5206610-default'
  },
  test: {
    baseApi: '//test.future.com/api',
    mockApi: 'http://127.0.0.1:4523/m1/5503242-0-default/api'
  },
  prod: {
    baseApi: '//future.com/api',
    mockApi: 'http://127.0.0.1:4523/m1/5503242-0-default/api'
  }
} 

export default {
  env,
  // mock: true, // 使用mock数据
  ...EnvConfig[env],
  namespace: 'manage'
}